package com.softeem.controller;

import com.softeem.entity.Admin;
import com.softeem.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author cj
 * @create 2021-04-2021/4/27 0027 19:01
 */
@Controller
public class AdminController {
    @Autowired
    private AdminService adminService;

    @RequestMapping("/login")
    public String login(Admin admin) {
        boolean login = adminService.login(admin);
        System.out.println(login);
        return "test";
    }



}
